import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/finance/admin/bankcard/getList',
    method: 'post',
    data: query
  })
}
export function saveBankcard(query) {
  return request({
    url: '/finance/admin/bankcard/save',
    method: 'post',
    data: query
  })
}

export function getBankcardDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/finance/admin/bankcard/getDetail?bankcardID='+query.bankcardID,
    method: 'get',
    data: query
  })
}

export function getBankcardList(query) {
  return request({
    url: '/finance/admin/bankcard/getList',
    method: 'post',
    data: query
  })
}